<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">   

    <ui:composition template="/templates/externa.xhtml">

        <ui:define name="corpo">

            <div>	
                <p:dialog header="#{msg.login_login}" visible="true" closable="false" draggable="false" resizable="false">       

                    <p:messages />

                    <h:form id="form_login">                        

			<p:fieldset style="border: none">
			    <h:panelGrid columns="2" cellpadding="5">
				<h:outputLabel for="login" value="#{msg.login_usuario}:*" />
				<p:inputText id="login" size="35" maxlength="20" value="#{loginUsuario.login}" required="true" requiredMessage="#{msg.login_usuario}: #{msg.campo_obrigatorio}" />
				<h:outputLabel for="senha" value="#{msg.login_senha}:*" />
				<p:password id="senha" feedback="false" size="35" maxlength="32" value="#{loginUsuario.senha}" required="true" requiredMessage="#{msg.login_senha}: #{msg.campo_obrigatorio}" />
			    </h:panelGrid>
			</p:fieldset>

                        <br/>

                        <div class="center">

			    <p:commandButton value="#{msg.login_esqueci_senha}"
					     style="width: 140px"/>

			    <p:spacer width="2"/>

                            <p:commandButton value="#{msg.login_login}" 
					     action="#{loginUsuario.login}" 
					     ajax="false"/>	

                        </div>

                    </h:form>

                </p:dialog>               
            </div>            
        </ui:define>         
    </ui:composition>
</html>
